var fb = require("firebird");
var sys = require("sys");
var con = fb.createConnection();
con.connectSync('D:\\Train.FDB', 'sysdba', 'masterkey', '');
var res = con.querySync("SELECT * FROM CCXX ORDER BY CCXX_CCSJ DESC ROWS 2");
var rows = res.fetchSync("all", true);
console.log(sys.inspect(rows));